<?php

namespace app\index\controller;

use app\BaseController;
use app\tool\Mongo;
use think\facade\View;


class Chat extends BaseController
{
    public function index()
    {
//        $mongo = new Mongo("8.130.18.175",27017,'jhx');
//        $userQuery = [
//            ['key'=>'id','filter'=>'$ne','value'=>1],
//        ];
//        $user = $mongo->query('user',$userQuery);
//        var_dump($user);



        $param = $this->request->get();

        View::assign('uid',$param['uid']);
        View::assign('fuid',$param['fuid']);

        return View::fetch();
    }

    public function userList()
    {
        return View::fetch();
    }
}